/* Copyright(C): Leaf Johnson 2009,2010

    This file is part of leaf-app.

    leaf-app is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    leaf-app is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with leaf-app.  If not, see <http://www.gnu.org/licenses/>.


 * 
 * 
 */


#include "devices.h"

/* 设备初始化的相关代码 */
DEF_UART_BUF( u0buf, 32 );
DEF_UART_BUF( u1buf, 32 );
void devices_init( void )
{
	uart_init( 0, ub115200, u0buf, u0bufSz );
	uart_init( 1, ub115200, u1buf, u1bufSz );
	sysclk_init( ( _BV(CS01) | _BV(CS02) ), 256, 1000  );/*初始化系统时钟，使用第一个定时器*/
}

/* 在这里声明你的中断服务程序 */
UART_ISR( 0 )
UART_ISR( 1 )
